4
Table Of Contents
5.6
Web Part Configuration.................................................................................................... 57
5.7
Lab - Create A Sharepoint Framework Web part................................................................ 58
5.7.1
create a Sharepoint client-side solution ............................................................................. 58
5.7.2
Take a look at the generated project.................................................................................. 59
5.7.3
Modify the default content................................................................................................. 61
5.7.3.1
Modify the default web part property......................................................................... 61
5.7.3.2
Modify the property pane settings.............................................................................. 61
5.7.3.3
Modify the web part.................................................................................................... 62
5.7.4
Test on sharepoint .............................................................................................................. 63
5.7.5
To finish up.......................................................................................................................... 64
6
JAVASCRIPT INTRODUCTION.............................................................................................65
7
JAVASCRIPT: THE LANGUAGE ............................................................................................69
7.1
JavaScript......................................................................................................................... 70
7.2
Variables.......................................................................................................................... 71
7.3
Types............................................................................................................................... 72
7.4
Objects ............................................................................................................................ 75
7.5
Functions......................................................................................................................... 79
7.6
Constructors .................................................................................................................... 84
7.7
Prototypes....................................................................................................................... 87
7.8
Error handling.................................................................................................................. 90
7.9
Summary ......................................................................................................................... 91
7.10
Lab – JavaScript Basics .................................................................................................. 93
7.10.1
Before you start................................................................................................................... 93
7.10.2
Creating the project ............................................................................................................ 93
7.10.3
Testing your scripts ............................................................................................................. 94
7.10.4
Exercise 1............................................................................................................................. 95
7.10.5
Exercise 2............................................................................................................................. 95
Copyright 2000- 2018 by U2U Training nv/sa, Belgium – For use in U2U courses only. Visit www.u2u.be